<?php
/**
 * @Author: rocky
 * Date: 2019/12/11
 * Time: 16:13
 */


namespace app\shop\model;


use app\common\model\BaseModel;

class ShopSpell extends BaseModel
{
    public function order(){
        return $this->hasMany(ShopOrder::class,'pt_id')->where('status','>',1);
    }
    public function good(){
        return $this->belongsTo(ShopGoods::class,'good_id');
    }
}